﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using System.Text;

public partial class admin_RoleMgr : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (Request.Params["RoleId"] != null)
            {
                hidRoleId.Value = Request.Params["RoleId"];

                Chenxin.Lib.Hr.BLL.Base_Permit_RoleDefine bllRole = new Chenxin.Lib.Hr.BLL.Base_Permit_RoleDefine();
                Chenxin.Lib.Hr.Entity.Base_Permit_RoleDefine entRole = bllRole.GetModel(new Guid(hidRoleId.Value));

                hidRoleName.Value = entRole.RoleName;
            }
        }
        catch (Exception ex)
        {
            Response.Redirect("/errorpage.aspx?msg=" + ex.Message);
        }
    }
}
